﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true" CodeFile="Appraise.aspx.cs" Inherits="Manage_Appraise" %>
<%@ Register Src="~/Manage/CmsMessageBox.ascx" TagName="MessageBox" TagPrefix="cms" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#<%=Save.ClientID %>').click(function () {
                var ds = [{ 'Controller': '#<%=Memo.ClientID %>',
                    'Type': 'R',
                    'ErrorMessage': '请输入评语。',
                    'Clear': false,
                    'Focus': true
                }, { 'Controller': '#<%=Memo.ClientID %>',
                    'Type': 'RNG',
                    'ErrorMessage': '请将评语评语内容控制在50-80字。',
                    'Clear': false,
                    'Focus': true,
                    'Size': 50,
                    'Size2': 80
                }];

                return Cms_ValidateForm(ds);
            });
        });
    </script></asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="body" Runat="Server">
    <cms:MessageBox ID="MessageBox" runat="server" />
    <table class="Info" cellspacing="1">
        <tr>
            <td align="right" style="width: 100px">评价等次：</td>
            <td align="center">
                <asp:RadioButtonList ID="Rank" runat="server" RepeatDirection="Horizontal" RepeatColumns="4">
                    <asp:ListItem Value="优" Selected="True">优</asp:ListItem>
                    <asp:ListItem Value="良">良</asp:ListItem>
                    <asp:ListItem Value="一般">一般</asp:ListItem>
                    <asp:ListItem Value="差">差</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td align="right">写实性评价：</td>
            <td>
                <asp:TextBox ID="Memo" runat="server" TextMode="MultiLine" Width="400px" Height="150px"></asp:TextBox>
                <br />
                <label style="color: #ff0000">注：评语内容50-80字。</label>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="Save" runat="server" Text="保存" CssClass="Button" 
                    onclick="Save_Click" /></td>
        </tr>
    </table>
</asp:Content>

